"use strict";

const Controller = require('../common/admin')

class GroupController extends Controller {

  tableName = "group"

  async groupList() {
    let result = await this.consult()
    console.log(result);
    this.resData(0, '角色列表获取成功', result)
  }

  async addGroup() {
    await this.add({create_time: Date.now(), modify_time: Date.now(), ...this.ctx.request.body})
    this.resData()
  }

}

module.exports = GroupController